﻿using System;
using System.Collections.Generic;
using System.Text;
using WeatherSystem.Application.ContentAdapter.Base;
using WeatherSystem.Application.MsgHandler;
using WeatherSystem.Data.Response;

namespace WeatherSystem.Application.ContentAdapter.EventAdapter
{
    abstract class EventAdapterBase : Adapter
    {
        public abstract ResponseMessageBase Handle(MsgHandler.Message message);
        public abstract string EventName { get; }
        public bool Adapt(MsgHandler.EventMessage message)
        {
            return (EventName == message.Event);
        }
    }
}
